package charpter14.lynx;

import generics.coffee.Coffee;
import generics.coffee.CoffeeGenerator;
import net.mindview.util.TypeCounter;

public class Twelve {
	private static TypeCounter typeCounter = new TypeCounter(Coffee.class);
	private static CoffeeGenerator coffeeGenerator = new CoffeeGenerator();
	
	public static void main(String[] args) {
		for (int i = 0; i < 20; i ++){
			typeCounter.count(coffeeGenerator.next());
		}
		System.out.println(typeCounter.toString());
	}
}
